﻿package igz.fleaxy.air 
{
	import flash.desktop.NativeApplication;
	/**
	 * @author Intelygenz | www.intelygenz.com
	 */
	public class AirConfigurationManager
	{
		static private var _Current : AirConfigurationManager;
		static public function get $Current () : AirConfigurationManager {
			if ( _Current == null ) {
				_Current = new AirConfigurationManager();
			}
			return _Current;
		}
		
		private var _AppId:String;
		public function get $AppId():String { return _AppId; }

		private var _AppVersion:String;
		public function get $AppVersion():String { return _AppVersion; }
		
		public function AirConfigurationManager() {
			var appXml : XML = NativeApplication.nativeApplication.applicationDescriptor;
			var ns:Namespace = appXml.namespace();

			_AppVersion = appXml.ns::version[0];
			
			_AppId = appXml.ns::id[0];
		}
		
	}

}